<p><a href=""></a></p>
<div class="container">
	<div class="row">
		<div class="col-md-3 nav-left">
			<a href="<?php echo site_url();?>"><img id="logo"  src="<?php echo base_url();?>public/img/logo.jpg" /></a>
		</div>
		<div class="col-md-6">
			<p class="contect"><i class="glyphicon glyphicon-earphone"></i>400-12345678910<i class="glyphicon glyphicon-envelope"></i> shop@goodjobs.cn</p>
			<div class="input-group">
			    <input type="text" class="form-control" placeholder="请输入商品名称或编号">
			    <span class="input-group-btn">
			    	<button class="btn btn-default" type="button">搜索</button>
			    </span>
			</div>
		</div>
		<div class="col-md-3">
			<p class="header_right">
			<?php if($this->session->userdata('user_is_login')){?>
			<a href="<?php echo site_url('User_login/login')?>">欢迎回来,<?php echo $this->session->userdata('username')?></a>
			<a  class="pull-right exit" href="<?php echo site_url('User_login/destroy') ?>">安全退出</a>
			<?php }else{?>
				<a href="<?php echo site_url('User_login/login')?>">请登录</a>
				<a href="<?php echo site_url('User_login/regedit')?>">快速注册</a>
			<?php }?>
				
			</p>
			<a href="<?php echo site_url('/shopping/shopcart');?>" class="shopcart pull-right">
			<?php 
				$CI=&get_instance();
				$CI->load->model('login_model');
			?>
				<i class="glyphicon glyphicon-shopping-cart"></i>我的购物车
			<?php if($this->session->userdata('user_is_login')){ ?>
				<span><?php echo $CI->login_model->cart_count($this->session->userdata('user_id'));?></span>
				<?php }?>
			</a>
		</div>
	</div>
</div>
